package com.wl.mbw2.configure;

import com.wl.mbw2.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author wl
 * @version 1.0
 * @date 2022/6/13
 * @description:
 */

public class Configure {

    @Bean
    public User user(){
        User user=new User();
        user.setId(10);
        user.setName("admin");
        return user;
    }
}
